FROM 172.31.205.29/library/python:3.6
LABEL maintainer="zwxu5 <zwxu5@iflytek.com>"

COPY . /data/
RUN cd /data \
  && apt-get update && apt-get install -y zip \
  && rm -rf /var/lib/apt/lists \
  && for req in $(cat requirements.txt); do pip install $req -i http://pypi.douban.com/simple --trusted-host pypi.douban.com; done \
  && rm -rf ~/.cache \
  && rm -rf /data
